<?php
include_once("../config.php");
doCSS();

if ($_SESSION["loggedIn"]) {
?>
<head>
<title>Поиск попутчика</title>
<script
	src="http://maps.google.com/maps?file=api&amp;v=2&amp;sensor=true&amp;key=<?php echo insertKey();?>"
	type="text/javascript"></script>
</head>
<body onload="buildMap()" onunload="GUnload()">
<table>
	<tr><td class=up colspan=2>Поиск попутчика</td></tr>
	<tr>
		<td class="n" height=400>
		<div id="map"></div>
		</td>
	<th rowspan=3 class=n width=600><div id=result> </div></th>
	</tr>
	<tr>
		<td class="n" width=400>
		<table width=100%>
			<tr><td class=b>Дата</td>
			<td class=b><input type='text' id='ddate' size='1' maxlength='2' value='дд' onclick="this.value='';"> / 
					<input type='text' id='mdate' size='1' maxlength='2' value='мм' onclick="this.value='';"> / 
					<input type='text' id='ydate' size='2' maxlength='4' value='гггг' onclick="this.value='';">
			
			</td>
			</tr>
			
			<tr><td class=b>Время отправки </td>
			<td class=b><input type='text' id='hstart' value='чч' size=1 maxlength=2 onclick="this.value='';">:<input type='text' id='mstart' value='мм' size=1 maxlength=2 onclick="this.value='';">	± 
					<input type='text' id='plstart' value='мм' size=1 maxlength=2 onclick="this.value='';"> минут
			</td>
			</tr>
			<tr><td class=b>Время прибытия </td>
			<td class=b><input type='text' id='hstop' value='чч' size=1 maxlength=2 onclick="this.value='';">:<input type='text' id='mstop' value='мм' size=1 maxlength=2 onclick="this.value='';"> ± 
					<input type='text' id='plstop' value='мм' size=1 maxlength=2 onclick="this.value='';"> минут
			</td>
			</tr>
			<tr><td class=b>Погрешность</td>
			<td class=b><input type='text' id='diap' size='1' maxlength='4' value='diap' onclick="this.value='';"> </td>
			</tr>
		</table>
	</td>
	</tr>
	<tr>
		<td class="bot" width="300">
		<center><input type="button" onclick="ButtonClick();"
			value="Обновить"></input> <input type="button" onclick="clearMap();return false;" value="Очистить карту"></input></center>
		</td>
	</tr>
	<tr>
		<td colspan="2" class="n">
		<div id="debug">divdiv</div>
		</td>
		
	</tr>
</table>
<script src="gm2.js" type="text/javascript"></script>
<script src="/../ajax.js" type="text/javascript"></script>
</body>
</html>
<?php
}
else {
	displayErrors ("login", "", 500);
}
?>
